// import { useParams } from 'react-router-dom'
//
// export function Detail () {
//   const { id } = useParams()
//   return <div>
//     <h1>this is Detail {id}</h1>
//   </div>
// }
import React from 'react'

export class Detail extends React.Component {
  render () {
    const id = this.props.match.params.id
    return <div>
      <h1>this is Detail {id}</h1>
    </div>
  }
}